package com.fa.dv.service;

import com.fa.dv.domain.Machinery;
import com.fa.dv.domain.Subject;
import com.fa.dv.domain.Workshop;

import java.util.ArrayList;
import java.util.List;

public interface IMachineryService {
    List<Machinery> list(Machinery machinery);

    List<Workshop> getWorkshop();

    void insert(Machinery machinery);

    /**
     * 根据车间ID查询车间名字
     */
     String getWorkshopName(Long workshopId);

    Machinery getMachineryTypeNameById(Long machineryId);

    void update(Machinery machinery);

    void delete(Long machineryId);

    void saveBatch(ArrayList<Machinery> cacheList);
}
